package com.im.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.im.service.common.Result;
import com.im.service.domain.entity.ImGroup;
import com.im.service.domain.vo.ImGroupVO;

/**
 * <p>
 * im-群组 服务类
 * </p>
 *
 * @author 刘志强
 * @since 2024-07-03
 */
public interface ImGroupService extends IService<ImGroup> {

    /**
     * 创建群组
     *
     * @param imGroup
     * @return
     */
    Result<ImGroup> createGroup(ImGroup imGroup);

    /**
     * 解散群组
     *
     * @param id
     * @return
     */
    Result dissolveGroup(Long id);

    /**
     * 群详情
     *
     * @param groupId
     * @return
     */
    Result<ImGroupVO> groupInfo(Long groupId);
}
